import HeaderBack from "@/components/HeaderBack";
import { getTranslations } from "next-intl/server";
import { ReactNode } from "react";
import styles from "./style.module.scss";
export const generateMetadata = async () => {
    const t = await getTranslations("titles");
    return {
        title: t("message"),
    };
};
export default async function Layout({
    children,
    params: { locale },
}: {
    children: ReactNode;
    params: { locale: string };
}) {
    const t = await getTranslations("ProfilePage");
    return (
        <div className="h-[100%] overflow-auto">
            <HeaderBack
                showBack={true}
                title={t("message")}
                useBg={false}
                className={styles.header}
            />
            <main className={"main-header"}>{children}</main>
        </div>
    );
}
